using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class BoomerangHit : MonoBehaviour
{
    public Button attackButton;
    public GameObject boomerang;
    // Start is called before the first frame update
    void Start()
    {
        attackButton.onClick.AddListener(Attack);
    }

    // Update is called once per frame
    void Update()
    {

    }
    public void Attack()
    {
        Instantiate(boomerang, transform.position, transform.rotation);
    }
}
